home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1999 Spring / macformat-077.iso / Shareware Plus / Development / SpriteWorld 2.2 Extra Demos / User Contributions / ButtonBreakOut ƒ / ButtonBreakOut / SP⁄DP.note < prev   
Encoding:
Text File  |  1999-01-14  |  1.0 KB  |  22 lines  |  [TEXT/CWIE]

  1. SpritePersistence/DataPersistence
  2.  
  3.     What use are these modules?
  4.  
  5.     For buttons, you would probably do this while working on your interface. e.g. you would 
  6.     move the buttons around, and when you're satisfied with them, do a SWGSaveSpritesInLayer 
  7.     call, perhaps in response to a keyboard command like cmd-S.
  8.  
  9.     For regular sprites, you might for instance use this to prepare the starting state for 
  10.     game levels; or you might wish to be able to save the game state in the middle of a level
  11.     (of course, you would probably have to save other level-related data too: for this, see 
  12.     the DataPersistence module). You might even use this for debugging purposes, to log
  13.     the sprite states at a given moment, or when you press a key, or each second, or every
  14.     100 cycles, or even (god forbid!) each cycle if you had a very elusive bug regarding 
  15.     collisions...
  16.  
  17.     In a finished program, you might use this as a save game feature; or it might be used as
  18.     a level-editor feature... whatever.
  19.  
  20.  
  21.     For detailed usage info, see SpritePersistence.note and DataPersistence.note
  22.